<meta charset="utf-8">
<div data-ng-controller="ShareManagementController">

	<div style="padding-top: 0px; padding-left: 20px;z-index: 10;width:100%;position:fixed;height: 20px;margin-top: 20px;">
		<font color="#636778">Show Times</font> > <font color="#333333">帖子管理</font>
	</div>
	
	<div class="form-group clearfix col-sm-12">
		
		<div class="col-xs-12" style="top: 50px; float: left;">
			<div>
				<table>
					<tr>
						<td align="right">
							帖子内容：
						</td>
						
						<td>
							<input class="form-control" type="text" placeholder="   请输入标签名称" width="150px"   data-ng-model="content" />
						</td>
						
						<td align="right">
							发帖人：
						</td>
						
						<td>
							<input class="form-control" type="text" placeholder="   请输入发帖人昵称" width="150px"  data-ng-model="nickName" />
						</td>
						
						<td align="right">
							&nbsp;帖子类型：
						</td>
						
						<td>
							<select data-ng-model="shareType" name="shareType"
								class="form-control" data-style="btn-primary"
								id="shareType" data-ng-change="changeType()">
									<option value="1">视频</option>
									<option value="2">图片</option>
									<option value="3">笑话</option>
									<option value="4">语音</option>
									<option value="5">链接</option>	
							</select>
						</td>
						
						<td>
							<div>
								<div style="float: left; line-height: 25px; position: relative; left: 10px">
									<input type="button" value="查询" data-ng-click="search()">
								</div>
				
								<div style="float: left; line-height: 25px; position: relative; left: 20px">
									<input type="button" value="新增帖子" data-ng-click="addShare()">
								</div>
							</div>
						</td>
					</tr>
					
					<tr>
						<td align="right">
							发帖开始时间：
						</td>
						
						<td>
							<div style="display: inline;">
								<div style="float: left;">
										<input  placeholder="开始时间"
											data-ng-model="shareStartDate"   data-fc-datetimepicker="yyyy-mm-dd" class="form-control"
											style="text-align: center;width: 180px" />
								</div>
							</div>
						</td>
						
						<td align="right">
							发帖结束时间：
						</td>
						
						<td>
							<div style="display: inline;">
								<div style="float: left;position: relative;">
										<input  placeholder="结束时间"
											data-ng-model="shareEndDate" data-fc-datetimepicker="yyyy-mm-dd" class="form-control"
											style="text-align: center;width: 180px" />
								</div>
							</div>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div style="padding-top: 130px; padding-left: 0px;width:100%;">
		<!-- 数据记录 -->
		<div class="col-sm-12 paddingLeft0" style="padding-left: 16px;padding-right: 16px;height: 400px;overflow-y:auto;" >
            <table class="table table-bordered table-striped table-hover" style="text-align: center;" >
	            <thead>
	                <tr> 
	                    <th style="text-align: center; align:center;" >编号</th>
	                    <th style="text-align: center; align:center;" >发帖人</th>
	                    <th style="text-align: center; align:center;" >发帖时间</th>
	                    <th style="text-align: center; align:center;" >帖子类型</th>
	                    <th style="text-align: center; align:center;" >帖子状态</th>
	                    <th style="text-align: center; align:center;" >点赞数</th>
	                    <th style="text-align: center; align:center;" >评论数</th>
	                    <th style="text-align: center; align:center;" >分享数</th>
	                    <th style="text-align: center; align:center;" >阅读数</th>
	                    <th style="text-align: center; align:center;" >操作</th>
	                </tr>
                </thead>
                <tbody>
	                <tr data-ng-if="data.length > 0" data-ng-repeat="share in data">
	                    <td style="width:5%; cursor: pointer; text-align:center;">{{$index+1}}</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;">{{share.shareUserName || ''}}</td>
	                    <td style="width:15%; cursor: pointer; text-align:center;">{{share.shareTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareType==1">视频</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareType==2">图片</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareType==3">笑话</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareType==4">语音</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareType==5">链接</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareType==0">&nbsp;</td>

						<td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareStatus==0">正常</td>
	                    <td style="width:10%; cursor: pointer; text-align:center;" ng-if ="share.shareStatus==1">已屏蔽</td>
	                    
	                    
	                    
	                    <td style="width:5%; cursor: pointer; text-align:center;">{{share.praiseCount || ''}}</td>
	                    <td style="width:5%; cursor: pointer; text-align:center;">{{share.commentCount || ''}}</td>
	                    <td style="width:5%; cursor: pointer; text-align:center;">{{share.shareCount || ''}}</td>
            	        <td style="width:5%; cursor: pointer; text-align:center;">{{share.readCount || ''}}</td>
	                    
	                    <td style="width:10%; cursor: pointer; text-align:center;">
	                    	
							<a href="javascript:void(0)" data-ng-click="showShare(share.shareId)" >查看</a>
							<a href="javascript:void(0) " data-ng-click="editShare(share.shareId)">修改</a>	                    	
							<!-- <a href="javascript:void(0)" data-fc-edit-share type="{{share.shareId}}" data-on-select="editShare($choseShare)">查看帖子</a> -->
	                    	<a href="javascript:void(0) " data-ng-click="deleteShare(share.shareId)">删除</a>
	                    </td>
	                </tr>
                </tbody>
            </table>
        </div>
        <div data-ng-if="data.length > 0" class="col-sm-12" style="padding-left: 0px;padding-right: 16px;padding-top: 0px;" >
				<div class="yahoo2">
				<span> <a style="cursor: pointer;" ng-click="gotoPage(1);">首页</a>
					<a style="cursor: pointer;" ng-click="upPage(currentPage-1);">上一页</a>
					<a style="cursor: pointer;" ng-click="nextPage(currentPage+1);">下一页</a>
					<a style="cursor: pointer;" ng-click="gotoPage(totalPage);">尾页</a>
				</span>
				当前第{{currentPage}} 页 共 {{totalPage}}页
			</div>
		</div>
	</div>
</div>
